<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>上传文章界面</title>
<script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
</script>

</head>
<body>
	<%
	Object logged=session.getAttribute("logged");
	System.out.println(logged);
	if(logged==null||(Integer)logged!=1){
		out.println("<script>alert('请先登录！');window.location='login.jsp';</script>");
	}
	%>

	<form action="UpdateServlet" method="get">
		请输入文章名：<input type="text" maxlength="50" name ="textname"  /><br>
		文章内容:<textarea rows = "5" cols = "30" name="textarea">博客内容...</textarea><br>
		<input type="submit" value="文章上传"/>
		<input type="reset" value="重新书写"/><br>
	</form>
	
</body>
</html>